<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<%@include file="/WEB-INF/base.jspf"%>
		<title></title>
		<style>
			.div-c-noticeContentDiv {
				position: fixed;
				-webkit-transform:scale(1);
				transform:scale(1);
			}
		</style>
	</head>
	<body style="background-color:#bdbdbd;">
	<div class="div-c-noticeContentDiv" id="errorPage">
		<div class="noticeContentInner">
			<div style="background-color:#059BF3;justify-content:center;"><span>维护公告</span>
			</div>
			<p style="text-align:center;color:red;">${reason}</p>
		</div>
	</div>
	</body>
	<script type="text/javascript">
		 var href=window.location.href;
		 var durl=/https?:\/\/([^\/]+)\//i; 
		 var domain = href.match(durl); 
		 var url=domain[0];
		if(href!=url+"error.jsp"){
			parent.window.location.href="/error.jsp";
		}
	
		   $.ajax({
			url: "/notices/error.do",
			type: "post",
			data: {},
			success: function(data) {
				if(data.data != 0){
					 window.location.href= "/pc/index.do";
				}
			},
		}) 
	 	setInterval(function () {
			$.ajax({
				url: "/notices/error.do",
				type: "post",
				data: {},
				success: function(data) {
					console.log(data.data,"data的值")
					if(data.data != 0){
						 window.location.href= "/pc/index.do";
					}
				},
			})
		 }, 30000);
	</script>
</html>